
<%@ page import="aca.Atividade" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'atividade.label', default: 'Atividade')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-atividade" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/user/index')}"><g:message code="default.home.label"/></a></li>
			</ul>
		</div>
		<div id="show-atividade" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list atividade">
			
				<g:if test="${atividadeInstance?.nome}">
				<li class="fieldcontain">
					<span id="nome-label" class="property-label"><g:message code="atividade.nome.label" default="Nome" /></span>
					
						<span class="property-value" aria-labelledby="nome-label"><g:fieldValue bean="${atividadeInstance}" field="nome"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${atividadeInstance?.turma}">
				<li class="fieldcontain">
					<span id="turma-label" class="property-label"><g:message code="atividade.turma.label" default="Turma" /></span>
					
						<span class="property-value" aria-labelledby="turma-label"><g:link controller="turma" action="show" id="${atividadeInstance?.turma?.id}">${atividadeInstance?.turma?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
				
			
				<g:if test="${atividadeInstance?.descricao}">
				<li class="fieldcontain">
					<span id="descricao-label" class="property-label"><g:message code="atividade.descricao.label" default="Descricao" /></span>
					
						<span class="property-value" aria-labelledby="descricao-label">
							${fieldValue(bean: atividadeInstance, field: 'descricao').decodeHTML()}
						</span>
					
				</li>
				</g:if>
				
				<g:if test="${atividadeInstance?.deadline}">
				<li class="fieldcontain">
					<span id="deadline-label" class="property-label"><g:message code="atividade.deadline.label" default="Deadline" /></span>
					
						<span class="property-value" aria-labelledby="descricao-label">
							${fieldValue(bean: atividadeInstance, field: 'deadline').decodeHTML()}
						</span>
					
				</li>
				</g:if>
				
					</ol>
				
						
					<g:if test="${new Date().before(atividadeInstance.deadline)}">
					<g:form action="upload_lab" method="post" enctype="multipart/form-data" params="[id: atividadeInstance.id]">
					<input type="file" name="lab" />
					<input type="submit" />
					</g:form>
				</g:if>
			
			
		</div>
	</body>
</html>
